<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewContactTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewContactLabel_contactID}"/>
                    <h:outputText value="#{contactController.selected.contactID}" title="#{bundle.ViewContactTitle_contactID}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_name}"/>
                    <h:outputText value="#{contactController.selected.name}" title="#{bundle.ViewContactTitle_name}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_address}"/>
                    <h:outputText value="#{contactController.selected.address}" title="#{bundle.ViewContactTitle_address}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_tell}"/>
                    <h:outputText value="#{contactController.selected.tell}" title="#{bundle.ViewContactTitle_tell}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_fax}"/>
                    <h:outputText value="#{contactController.selected.fax}" title="#{bundle.ViewContactTitle_fax}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_email}"/>
                    <h:outputText value="#{contactController.selected.email}" title="#{bundle.ViewContactTitle_email}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_question}"/>
                    <h:outputText value="#{contactController.selected.question}" title="#{bundle.ViewContactTitle_question}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_comment}"/>
                    <h:outputText value="#{contactController.selected.comment}" title="#{bundle.ViewContactTitle_comment}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_dateCreated}"/>
                    <h:outputText value="#{contactController.selected.dateCreated}" title="#{bundle.ViewContactTitle_dateCreated}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_isActive}"/>
                    <h:outputText value="#{contactController.selected.isActive}" title="#{bundle.ViewContactTitle_isActive}"/>
                    <h:outputText value="#{bundle.ViewContactLabel_approved}"/>
                    <h:outputText value="#{contactController.selected.approved}" title="#{bundle.ViewContactTitle_approved}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{contactController.destroyAndView}" value="#{bundle.ViewContactDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewContactEditLink}"/>
                <br />
                <h:commandLink action="#{contactController.prepareCreate}" value="#{bundle.ViewContactCreateLink}" />
                <br />
                <h:commandLink action="#{contactController.prepareList}" value="#{bundle.ViewContactShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewContactIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
